Nom de Plume is an anonymous, collaborative storytelling platform.
It's live and playable at http://secretstorytime.com/. This is the source code.
One featured story at a time:
A gallery of previous stories:
If you want to try running it, here are the many many steps:
- clone the repo
bundle install
to get the dependencies for the rails app- register with twilio and get your phone number, SID, and token
- create a file at
config/application.yml
with that information, which looks like this:
TWILIO_SID: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
TWILIO_TOKEN: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
TWILIO_NUMBER: "+15555555555"
PERSONAL_NUMBER: "+15555555554"
- create a file at
config/database.yml
with the standard rails 3.2.13 contents (it's not in our repo because ours is customized for deployment):
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
timeout: 5000
rake db:migrate
to setup your databaserake db:seed
to seed your database, which...- creates a bunch of random opening lines
- creates an admin user
- creates a participant user
- creates a first story with a random opening line
- chooses you to continue the story
- sends you a text message
rails s
to start the serverlocaltunnel 3000
to expose the rails app publicly- visit the twilio manage numbers page, choose your number, and change the SMS request URL to
<whatever your localtunnel address is>/receive
rackup faye.ru -s thin -E production
to start your faye server- visit it at http://localhost:3000
You should see the first line of your story and be able to text in a message.